package com.zerous.simplerts;
import android.content.*;
import android.view.*;
import java.util.*;

public class ZInput
{
	public static class TouchEvent
	{
		public static final int TouchUp = 0;
		public static final int TouchDown = 1;
		public static final int TouchMove = 2;
		
		public int type;
		public int x, y;
		public int pointer;
	}
	
	public static int TouchType;
	
	TouchHandler touchHandler;
	
	public ZInput( View v)
	{
		touchHandler = new TouchHandler(v);
	}
	
	public int getTouchX(int pointer)
	{
		return touchHandler.getTouchX(pointer);
	}
	
	public int getTouchY(int pointer)
	{
		return touchHandler.getTouchY(pointer);
	}
	
	public int getTouchType(int pointer)
	{
		return touchHandler.getTouchType(pointer);
	}
	
	public List<TouchEvent> getTouchEvents()
	{
		return touchHandler.getTouchEvents();
	}
}
